﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Game_Guess_number
{
	class Program
	{
		static void Main(string[] args)
		{
			while (true)
			{
				Random rnd = new Random();
				int x = rnd.Next(10);
				Console.WriteLine("Enter Number from 0 to 10.");
				int a = int.Parse(Console.ReadLine());
				if (a == x)
				{
					Console.WriteLine("You guess number");
				}
				else
				{
					Console.WriteLine("Try one more time!");
				}
				Console.ReadLine();
			}
		}
	}
}
